var pro = new Promise(function (resovle, reject) {
    if (flase) {
        resovle('success');
    } else {
        reject('failed');
    }
});

pro.then(function (param) {
    console.log(param);
}, function (param) {
    console.log(param);
})

function fn1(sec){
    setTimeout(function(){
    console.log('我是函数1');
    },sec*1000);
}

function fn2(sec){
    setTimeout(function(){
    console.log('我是函数2');
    },sec*1000);
}

function fn3(sec){
    setTimeout(function(){
    console.log('我是函数3');
    },sec*1000);
}

//fn1(3);
//fn2(1);
//fn3(2);
